<template>
  <div class="main-tab-bar">
    <tab-bar-list>
      <tab-bar-list-item path="/msite">
        <span slot="img">
          <img src="~assets/img/tabbar/take-out.png" alt="" />
        </span>
        <span slot="img-active">
          <img src="~assets/img/tabbar/take-out-active.png" alt="" />
        </span>
        <span slot="text"> 外卖 </span>
      </tab-bar-list-item>
    </tab-bar-list>
    <tab-bar-list>
      <tab-bar-list-item path="/search">
        <span slot="img">
          <img src="~assets/img/tabbar/search.png" alt="" />
        </span>
        <span slot="img-active">
          <img src="~assets/img/tabbar/search-active.png" alt="" />
        </span>
        <span slot="text"> 搜索 </span>
      </tab-bar-list-item>
    </tab-bar-list>
    <tab-bar-list>
      <tab-bar-list-item path="/order">
        <span slot="img">
          <img src="~assets/img/tabbar/order.png" alt="" />
        </span>
        <span slot="img-active">
          <img src="~assets/img/tabbar/order-active.png" alt="" />
        </span>
        <span slot="text"> 订单 </span>
      </tab-bar-list-item>
    </tab-bar-list>
    <tab-bar-list>
      <tab-bar-list-item path="/profile">
        <span slot="img">
          <img src="~assets/img/tabbar/profile.png" alt="" />
        </span>
        <span slot="img-active">
          <img src="~assets/img/tabbar/profile-active.png" alt="" />
        </span>
        <span slot="text"> 我的 </span>
      </tab-bar-list-item>
    </tab-bar-list>
  </div>
</template>

<script>
import TabBarList from "components/common/tabbar/TabBarList";
import TabBarListItem from "components/common/tabbar/TabBarListItem";
export default {
  components: {
    TabBarList,
    TabBarListItem,
  },
};
</script>
<style scoped>
.main-tab-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  height: 49px;
  background-color: #fff;
  box-shadow: 0 -1px 10px #f3f3f3;
}
</style>